//package com.sky.task;
//
//
//import com.sky.mapper.OrderMapper;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//
///**
// * 定时任务类，处理定时任务
// */
//@Component
//@Slf4j
//public class OrderTask {
//
//    @Autowired
//    private OrderMapper orderMapper;
//
//    /**
//     * 处理超时订单方法
//     */
//    @Scheduled(cron = "0 * * * * ?")// 每分钟触发一次
//    public void processTimeoutOrder(){
//        log.info("定时处理超时订单：{}", LocalDateTime.now());
//        //select * from orders where
//    }
//}
